//导入 mongoose
const mongoose = require('mongoose');

//5. 创建文档结构对象
let MovieSchema = new mongoose.Schema({
  name: String,
  actors: Array,
  releaseYear: Number,
});

//6. 创建文档模型对象            集合名称
let MovieModel = mongoose.model("movie", MovieSchema);

//暴露
module.exports = MovieModel;
